package com.scpii.universal.dispatch;

import java.util.HashMap;
import java.util.Map;

/*
 * 记录常量信息
 */
public final class Const {

	/**
	 * 生成的IOS包，在数据库中存储时APPSTORE和GOTOAPP的包用这个符号进行分隔，方便存储在一个字段中
	 */
	public static final String IOS_FILENAME_SEPARATOR = ",";
	/**
	 * IOS各图片大小设置
	 */
	public static final Map<String, String> SIZE_MAP = new HashMap<String, String>();

	public static final String NODE_CONFIG = "CONFIG";
	public static final long SlEEP_TIME = 1500;

	public static final boolean DEBUG = false; // 提供测试使用
	public static final int COMPLETE_PACK_ACTION = 0;// 完成打包事件
	public static final int UNCOMPLETE_PACK_ACTION = 1;// 打包失败事件
	public static final Integer WAIT_PACK_STATE = 0;// 待打包状态
	public static final Integer COMPLETE_PACK_STATE = 1;// 打包完毕状态
	public static final Integer COMPLETE_COMPILE_STATE = 2;// 编译完毕状态
	public static final Integer COMPILE_ERRO = -1;// 编译完毕状态
	public static final int OP_CODE_SUCESS = 0;// 操作码为成功
	public static final String COMPILE_ERROR_MSG = "编译端编译出错";

	/**
	 * 逻辑删除符 0:存在，1:已删除
	 */
	public static final Integer DELETE_SIGN_DELETED = 1;
	public static final Integer DELETE_SIGN_EXIST = 0;

	/**
	 * ehcache name
	 */
	public static final String CATELOG_EHCACHE = "catelogCache";

	public static final class IniConfig {
		public static final String GUIDE_BAR = "GuideBar";
		public static final String CORE_INFO = "CoreInfo";
		public static final String PAGE = "Page";
		public static final String PNS_SUFIX = ".png";
		public static final String PNG_2X_SUFIX = "@2x.png";
		public static final String ZIP_SUFIX = ".zip";
		public static final String ICON_PIC = "icon.png";
		public static final String SPLASH_PIC = "splash.png";
		public static final String DEFAULT_PIC = "Default.png";
		public static final String ENTERPRISE_ID = "EnterpriseID";
		public static final String SERVER_HOST = "ServerHost";
		/**
		 * 修改内容：新增ini文件中的字段名称为“ServerPushAPI” push接口调用 修改人：左柳波 修改时间：2012-12-20
		 */
		public static final String SERVER_PUSH_API = "ServerPushAPI";
		public static final String API = "API";
		public static final String APP_SECRET = "AppSecret";
		public static final String TEMPLATE = "Templete";
		public static final String NAVIGATE_STYLE_ID = "NavigateStyleId";
		public static final String GOOGLE_ANALYTICS = "GoogleAnalytics";
		public static final String APP_UPDATE_VERSION = "AppUpdateVersion";
		public static final String APP_ID = "AppID";
		public static final String SYS_SIGN = "universal";
	}

	public static final class DispathConfig {
		public static String PACK_TASK_POOL_NUM;
		public static String DOWNLOAD_PIC_TASK_POOL_NUM;
		public static String PACK_TASK_POOL_AWAIT_TIME;
		public static String DOWNLOADPIC_TASK_POOL_AWAIT_TIME;
		public static String SERVER_HOST_API;
		public static String SERVER_PUSH_API;
		public static String SERVER_HOST;
		public static String API;
		public static String APP_SECRET;
		public static String UNIVERSAL_DISPATCH_TEMP_DIR;
		public static String UNIVERSAL_DISPATCH_CONFIG_DIR;
		public static String UNIVERSAL_DISPATCH_STORE_DIR;
		public static String UNIVERSAL_DISPATCH_DIR;
		public static String ZIP_SUB_CONFIG; // config
		public static String ZIP_SUB_RESOURCE; // resources
		public static String ZIP_SUB_CERTIFICATION; // certification
		public static String CONFIG_INI;// config.ini
		public static String IOS_APP_OS_TYPE;
		public static String ANDROID_APP_OS_TYPE;
		public static String FTP_HOST;
		public static String FTP_STORE_DIR;
		public static String GOOGLE_ANALYTICS;
		public static String REGISTER_ALLOW_KEY;
		public static String DEFAULT_SINA_APP_KEY;
		public static String DEFAULT_SINA_APP_ID;
		public static String DEFAULT_WX_APP_KEY;
		public static String DEFAULT_WX_APP_ID;
		public static String DEFAULT_TENCENT_APP_KEY;
		public static String DEFAULT_TENCENT_APP_ID;
		public static String ENVIRONMENT;

	}

}
